//
//  SINACalendarUtils.h
//  sinashebao
//
//  Created by  androidlongs on 2018/1/15.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SINACalendarUtils : NSObject

+(int)getYear;
+(int)getMonth;
+(int)getDay;
+(int)getHour;
+(int)getMinute;
+(int)getSecond;

+(NSString*) getCurrentEnMonth:(NSInteger) month;
+(NSString *)getCurrentEnDay:(NSInteger)flag;

+(NSInteger)getFirstDayWeekForMonth:(NSDate*)date;

+(NSInteger)getCurrentMonthForDays;

//时区转换
+ (NSDate *)getNowDateFromatAnDate:(NSDate *)anyDate;


+(NSString *)timeStampFromUTCDate:(NSDate *)UTCDate;

+(NSDate *)getDateTimeFromMilliSeconds:(long long) miliSeconds;

/**
 *获取当前时间戳
 *1516776002991
 */
+(NSString *)currentTimeStr;

/**
 *时间戳转时间,时间戳为13位是精确到毫秒的，10位精确到秒
 */
+(NSString *)getDateStringWithTimeStr:(NSString *)str;
+(NSString *)getDateStringWithTimeStr:(NSString *)str andFormat:(NSString*)formatStr;


/**
 *获取当前的时间
 yyyy-MM-dd HH:mm:ss
 */
-(NSString *)getCurrentTime:(NSString*) format;

+(long long)getDateTimeTOMilliSeconds:(NSDate *)datetime;

//当前时间与之前时间的间隔
-(NSString *)getStandardTimeInterval:(NSTimeInterval)interval;


-(NSString *)getMMSSFromSS:(NSString *)totalTime;

+ (NSString *)dateWeekWithDateString:(NSString *)dateString;
@end
